// TOWN DIALOGUE SCRIPT
//    Town 1: Erarl

// This is the dialogue for this town.
// You can use states numbered from 1 to 99.

begintalkscript;

variables;

int i,j,k,r1,choice;
short lead_char;


//*** Arrest ***

begintalknode 1;
	state = -1;
	personality = 0;
	nextstate = 1;
	condition = 1;
	question = "Nephil Guard";
	text1 = "Upon entering the village you are immediately surrounded by guards. At least this time the reaction is not openly hostile, but they are definitely not happy to see outsiders intruding upon their village.";
	text2 = "One of the guards speaks in a rough and raspy voice, _Outsiders! Our scouts have informed us you slew our guards to the south. Surrender to us now and our leader will be merciful._";
 text3 = "The guards stare at you uneasily, waiting for a response.";

begintalknode 2;
	state = 1;
	personality = 0;
	nextstate = 1;
	condition = 1;
	question = "Wait! We had no choice. We were attacked first and had to defend ourselves.";
	text1 = "The guard ponders your response. _It is not my say as to what actions will be taken. Our leader is wise and benevolent. If it is as you say, she will grant you amnesty. But you must show us good faith and surrender your weapons._";
 text2 = "The guards watch even more nervously. Some of them prepare to draw their weapons. Your presense is causing them great agitation and they want quick resolution. Your claims of innocence only make them more tense.";

begintalknode 3;
	state = 1;
	personality = 0;
	nextstate = 1;
	condition = 1;
	question = "All right. We will cooperate and surrender our weapons.";
	text1 = "The guards instantly look relieved that they do not have to fight you. _Wise choice. Our leader will see you immediately._";
 code =
   end();
 break;

begintalknode 4;
	state = 1;
	personality = 0;
	nextstate = 1;
	condition = 1;
	question = "We will not surrender and be killed by you savages! (Attack)";
	text1 = "The guards suspicions and worst fears were confirmed. They clearly do not want to fight you, but you have given them little choice. They draw their weapons and attack.";
 code =
  make_town_hostile();
  set_flag(0,7,2);
  set_flag(1,29,1);
  end();
 break;
  
begintalknode 5;
	state = -1;
	personality = 2;
	nextstate = 2;
	condition = 1;
	question = "Arivan";
	text1 = "You are brought before the leader of this isolated tribe. Her fur has an unusual blue hue. You guess that it has some sort of dye, although you cannot be sure.";
	text2 = "Her poise is tall and confident. Her eyes can pierce right into your soul. On her left shoulder is an eerie rune shaped like a sort of cross. You cannot make it out, but it radiates some kind of strange force.";
	text3 = "The leader looks each of you over, in exquisite detail, before saying anything. It feels quite eerie, like every part of you is somehow being scanned. Once she is satisfied she begins to speak.";
 	text4 = "_Outsiders, you trespass upon our domain and I hear you have slain the guards to the south. This is a very serious crime. What have you to say for this?_";

begintalknode 6;
	state = -1;
	personality = 2;
	nextstate = 8;
	condition = 1;
	question = "Arivan";
	text1 = "Arivan looks somewhat annoyed that you have returned to her after explicitly telling you to leave the village as soon as possible. She puts aside the orders she is writing, sighs, and looks up at you blankly.";

begintalknode 7;
	state = 2;
	personality = 2;
	nextstate = 3;
	condition = get_sdf(0,7) < 4;
	question = "We were sent to explore this island. We encountered your guards and they attacked us. We had to defend ourselves.";
	text1 = "The leader ponders your response, _Yes, they were instructed to keep away anything they thought hostile. Questioning was not part of their orders and they were doing just as told. I commend them for that._";
	text2 = "She grins. _Besides, if they were not strong enough to take you, they probably deserved to be killed anyway, or at least not deserving of being guardians of this village._";
 text3 = "She looks down and ponders. At last she murmurs to herself, _Need more rigorous selection processes..._ her voice trails.";

begintalknode 8;
	state = 3;
	personality = 2;
	nextstate = 4;
	condition = get_sdf(0,7) < 4;
	question = "Why do you say they deserved to be killed?";
 text1 = "She smiles excitedly, _We have a philosophy, a code of laws that is structured in such a way to reward the merit of the individual. Those who are strong of body and wit succeed. Those who are not, well..._";
 text2 = "_We have laws to ensure only the strong are allowed to breed. That way we can always be continually improving our society. We have seen unprecedented productivity even in the last few years._";

begintalknode 9;
	state = 4;
	personality = 2;
	nextstate = 5;
	condition = get_sdf(0,7) < 4;
	question = "So how do you enforce these laws of yours?";
	text1 = "She brings her hand together and grins like a true fanatic. _Oh that is so easy when you have everyone watching everyone. We reward our youth for finding weaknesses in their peers. This behavior is similar for adults._";
 text2 = "_Our culture drives us to root out weakness in each other and inspires everyone to perform past their limits. This inherent productivity has made us strong and the only consequence is hurting a few to benefit the greater good._";
 text3 = "_The beauty is that these ideas are perfectly logical. It is the natural order of nature. The weak get destroyed. The farmer only plants the seeds of the best crop for the next harvest._";

begintalknode 10;
	state = 5;
	personality = 2;
	nextstate = 6;
	condition = get_sdf(0,7) < 4;
	question = "What happens to those deemed 'weak'?";
	text1 = "Her voice begins to shake and sound uncomfortable. _Well, it depends on the severity of the defect. If it is small, then they are usually allowed to live peacefully so long as they do not breed._";
 text2 = "_Ones with greater defects that are real detriments to our society, or those who try to challenge our ideals, are banished to the wilderness. If they resist further, they leave us no choice but to kill them._";
 text3 = "She sighs, _Regrettable. But the road to perfection is not easy._";

begintalknode 11;
	state = 6;
	personality = 2;
	nextstate = 7;
	condition = get_sdf(0,7) < 4;
	question = "Is not killing people just because they cannot measure up a little harsh?";
	text1 = "Her eyes narrow as she becomes somewhat annoyed. _Outsiders, you do not understand our customs and should not judge them. You have your own ways, and we have ours. Let us leave it at that._";
 text2 = "_Speaking of which, you really do not belong here and should be leaving as soon as you can. You may stay here and rest as our guest, but do not linger for my people are not familiar with outsiders._";

begintalknode 12;
	state = 7;
	personality = 2;
	nextstate = -1;
	condition = get_sdf(0,7) < 4;
	question = "Before we can leave, we would like to know how to reach the shore.";
	text1 = "She grins hearing your desire to leave. _That is simple. Leave this village, head east and then north along the rocky ridge. Continue following the forest trail a long way and you should find it._";
 text2 = "There is a long pause. _Oh yes, I will inform the guards to let you through immediately. I suppose there is nothing else you need and you should be leaving soon. This meeting has already wasted my time and I need to get back to work._";
 text3 = "She nods and gestures with her hands to leave in an authoritative motion. This place has a strange philosophy. You should leave, but learning more about this group of Nephil may be more interesting than a mere geologic survey.";
 text4 = "The question of them being completely undetected remains unanswered as is the fate of the village to the south. You are willing to bet there is more than what is on the surface here.";
 code =
  set_flag(0,7,4);
  end();
 break;

begintalknode 13;
	state = 8;
	personality = 2;
	nextstate = -1;
	condition = 1;
	question = "Sorry to bother you, but how do I reach the shore again?";
	text1 = "She sighs having to waste her time. _Leave this village and go north along the ridge. Follow the path to the northeast and you should reach the shore eventually. You should be going there soon,_ she says in a not so subtle way.";
 text2 = "_Now is that all?_";

begintalknode 14;
	state = 8;
	personality = 2;
	nextstate = -1;
	condition = 1;
	question = "This fortress you have is quite impressive.";
	text1 = "She grins, _It is a credit to our people, strong and intelligent. Building this structure was a feat only an advanced society such as ourselves could achieve. You could learn something from this, outsiders._";
 text2 = "Little does she know, your Empire has achieved far more than this small village could ever hope to and without draconian policies. It would be unwise to debate her, so you let the matter drop.";

begintalknode 15;
	state = 8;
	personality = 2;
	nextstate = -1;
	condition = 1;
	question = "The people here seem constantly worried. Do you see that as a problem?";
	text1 = "She scowls. _Look, you really should be leaving. Your presence is disturbing us. I give you free passage here, but I cannot guarantee your safety completely. For your own sake, I suggest you leave soon._";
 text2 = "You notice how she dodged your question because she clearly does not want you to answer it. Nor does she want you around to deliver a different perspective to her people.";

begintalknode 16;
	state = 8;
	personality = 2;
	nextstate = -1;
	condition = 1;
	question = "Do you know where we can get supplies?";
	text1 = "_Ask the merchants of this village. I am sure they will deal with you fairly._ She immediately goes back to her work, uninterested in speaking with you.";

begintalknode 17;
	state = -1;
	personality = 3;
	nextstate = 9;
	condition = 1;
	question = "Klinger";
	text1 = "A young Nephilim stands quietly in this cell. His fur is dirty and ragged and his body looks to be the victim of several wounds. Yet this one remains calm and strong. You see the light of confidence in his eyes.";
 text2 = "He looks you over curiously. He probably has never seen humans before. Despite this, he does not exude any visible fear. After he is satisfied you do not mean him harm, he bows and waits for you to speak.";
	text5 = "Klinger looks at you calmly. He bows and says _What do you need, outsiders?_"; 
	action = INTRO;

begintalknode 18;
	state = 9;
	personality = 3;
	nextstate = 10;
	condition = 1;
	question = "You look in rough shape. What are you doing here?";
	text1 = "_I was captured for spying. They kept me alive, trying to break me, hoping that I would talk. The fools. Their tortures only make me stronger. I am not afriad to die if necessary to stop this madness._";

begintalknode 19;
	state = 10;
	personality = 3;
	nextstate = 11;
	condition = 1;
	question = "Spying? For whom?";
	text1 = "_There are many of us who either do not agree with the philosophy of Arivan's leadership. There are others who could not measure up to the strict, and really nonsensical, standards she applies.";
 text2 = "_We are the exiles, the banished. We seek to overturn this current course of destruction our people are on. We are ever-growing in strength. One day, we will strike. Until then, we look for weaknesses._";

begintalknode 20;
	state = 11;
	personality = 3;
	nextstate = 12;
	condition = 1;
	question = "That is very noble. How could I join?";
	text1 = "He grins and chuckles. _Perhaps, but not now. You are not trusted yet. It would be a great risk to try and recruit outsiders. However, it may be wise to consider you. But not yet._";

begintalknode 21;
	state = 12;
	personality = 3;
	nextstate = -1;
	condition = 1;
	question = "We could be very useful to you. You really should consider us.";
	text1 = "_And we shall, if we know we can trust you. However, we do not know your motivations, your philosophies, your allegances. Perhaps if you establish your trust with us._";

begintalknode 22;
	state = 11;
	personality = 3;
	nextstate = -1;
	condition = 1;
	question = "Do you think your resistance stands a chance against Arivan?";
	text1 = "_True. She is powerful, as are her people. However, we have creativity, drive, and motivation. Our strength continues to grow. Perhaps we cannot match her yet. But perhaps one day._";

begintalknode 23;
	state = 10;
	personality = 3;
	nextstate = -1;
	condition = 1;
	question = "Why don't you attempt to escape?";
	text1 = "_The thought has crossed my mind,_ he muses playfully. _I shall, before they come to kill me. But there is much I still I need to learn that could be useful. But that is not yet._";

begintalknode 24;
	state = 12;
	personality = 3;
	nextstate = -1;
	condition = 1;
	question = "Perhaps I could help you escape to show you my loyalty.";
	text1 = "He chuckles again. _I do not need your help with that. Even in captivity I continue to gather intelligence. When the time comes, I will escape._";
 text2 = "There is a pause as Klinger thinks. _Perhaps there is something you could do to prove your loyalty. There is something I want to look at, an important document. Trying to reach it would be risky._";
 text3 = "_I speak of the journal of Arivan herself. Fortunately there is a passage to her chambers. In back of this structure is a small storeroom. On the wall you should see an elk's head. Pull the left horn to reveal a passage._";
 text4 = "_Find her journal and report anything interesting to me. Be careful, the book may be trapped._";
 code = 
  set_flag(0,20,1);
  toggle_quest(1,1);
 break;

begintalknode 25;
	state = 9;
	personality = 3;
	nextstate = 13;
	condition = get_sdf(0,21) >= 1;
	question = "I have read Arivan's journal as you have asked. (Tell him about it)";
	text1 = "You tell him about Arivan's chamber and the protective runes. Klinger adds, _I figured you would have better luck with those runes. Those things are dumb. If they see something unfamiliar, they just do nothing._";
 text2 = "_Anyway, continue._ You tell him about the imminent attack on the tribe of Asmur. He seems quite disturbed by this. You give him the note and fill him in on as many details as you can remember.";
 text3 = "_We suspected she was up to something big. We noticed movement of her soldiers, but we were unsure why. That is why I was sent here. Now that I know what I need to, I can escape._";

begintalknode 26;
	state = 13;
	personality = 3;
	nextstate = -1;
	condition = 1;
	question = "Will you need my help to escape?";
	text1 = "He grins. _No, not at all. Escaping will be easy, almost trivial. However, the journey to Asmur will not be easy. If you want to help me more, come with me and help me travel to the north._";
 text2 = "_The people of Asmur must be warned as soon as possible. They are a powerful, but secretive, tribe. If they are to fight off Arivan, they will need to know as much as possible about the threat they face._";
 text3 = "_I would confer with my leaders, but time is too short. We must leave immediately._";
 code =
  add_char_to_party(7);
  set_flag(110,0,1);
  erase_char(7);
  toggle_quest(1,0);
  award_party_xp(200,5);
  toggle_quest(2,1);
  end();
 break;

begintalknode 27;
 state = -1;
 personality = 4;
 nextstate = 14;
 condition = 1;
 question = "Sarisi";
 text1 = "Before you stands a smug Nephilim shaman. He prances about his lab like the emperor in Solaria carrying a bottle of icky dark green goo. Arrogantly, he almost walks right through you.";
 text2 = "You greet him and he turns and grunts. _Yes?_ he asks, in an annoyed tone.";

begintalknode 28;
 state = 14;
 personality = 4;
 nextstate = 15;
 condition = 1;
 question = "What do you do for this village, shaman?";
 text1 = "_I am the greatest alchemist in this forest,_ he states matter of factly. _I produce potions so our forces can extract the best talent and build the perfect society._";

begintalknode 29;
 state = 15;
 personality = 4;
 nextstate = 16;
 condition = 1;
 question = "How do you feel about the quest for perfection?";
 text1 = "_It is our holy quest, our calling from the gods. This isle must be made pure of all weakness and trouble. In a few generations, all the old afflictions of disease, incompetence, and disobedience will be removed._";
 text2 = "His eyes gloss over as he mindlessly recites his ritualistic creed. _It will truly be wonderful,_ he adds in full belief.";

begintalknode 30;
 state = 16;
 personality = 4;
 nextstate = -1;
 condition = 1;
 question = "So your children will not have these 'afflictions' either? Did you consider that?";
 text1 = "_Oh yes, of course._ He clears his throat. _You see, parents spread their traits on to their children. Children are a mix of their family's traits, predominantly the parents and grandparents._";
 text2 = "_I do not deny there will be difficulties and some children may still be defective, but over time we will prevail. We will make this island as clean as if the gods lived here themselves._";

begintalknode 31;
 state = 16;
 personality = 4;
 nextstate = -1;
 condition = 1;
 question = "Are you sure forcing perfection is the right thing to do?";
 text1 = "He looks very confused as if the thought had not crossed his mind ever before. _Not right? Why it is our manifest destiny given by the gods upon high. The gods cannot be wrong. They are perfect, as we will soon be._";
 text2= "After speaking, he gives you a very concerned, if not startled, gaze. You clearly have said something that is taboo in this village.";

begintalknode 32;
 state = 15;
 personality = 4;
 nextstate = -1;
 condition = 1;
 question = "Perhaps you would be willing to share some of your great skills?";
 text1 = "He seems offended at your asking. _I don't have time. I'm too important to train outsiders. I doubt you could even comprehend my work anyway. I cannot be halted in my mission to achieve perfection._";
 text2 = "The shaman really does not want to speak with you. He clearly has 'more important' things to attend to.";

begintalknode 33;
 state = 14;
 personality = 4;
 nextstate = 17;
 condition = 1;
 question = "What is the purpose of this lab?";
 text1 = "_We fabricate potions for our soldiers so they can defend the ideals of our tribe. The battles they face in our holy quest are bloody in the extreme. Potions can change the odds in any battle._";
 text2 = "He looks you over. _I am sure distant travelers like yourselves are well aware of this fact._ And indeed you are.";

begintalknode 34;
 state = 17;
 personality = 4;
 nextstate = -1;
 condition = 1;
 question = "Tell me more about your armies.";
 text1 = "He clears his throat and grudgingly speaks to you, _They number the hundreds. They train in the glade to the south. Best trained army on this entire island, they are, a testiment to Arivan's wise leadership._";
 text2 = "He grins, _I wouldn't go over there if I were you. I doubt they would take too kindly to outsiders._";
 text3 = "You can tell by the inflection of his voice that he really wants you to go over there just to get you away from him if nothing else.";

begintalknode 35;
 state = 17;
 personality = 4;
 nextstate = -1;
 condition = 1;
 question = "Could we buy some of your potions for the journey home?";
 text1 = "_Absolutely not!_ he roars. _These potions are for our soldiers. We need them to defend ourselves, our vision, to complete our destiny. We cannot spare a single resource in this effort._";
 text2 = "There is a long uncomfortable pause. _Now is there anything else? I really must get back to work. My tribe needs me._";

begintalknode 36;
 state = -1;
 personality = 5;
 nextstate = 18;
 condition = 1;
 question = "Endora";
 text1 = "A Nephil Shaman paces about this shrine nervously. She seems like she gets very little sleep and looks in bad shape, a sad state of affairs for a supposed religious leader.";
 text2 = "Your presence is not helping at all either. She tries to conduct 'business as usual' and ignore your presence while keeping an uneasy eye on you.";
 text3 = "Eventually she approaches. _Outsiders, what do you seek at this temple?_";

begintalknode 37;
 state = 18;
 personality = 5;
 nextstate = 19;
 condition = 1;
 question = "Are you in charge of this shrine?";
 text1 = "_Oh yes,_ she says hastily. _I am. At least I am for now. I hope I still am tomorrow._ She shakes her head in fear.";
 text2 = "She clears her throat and attempts to hide her feelings. _Yes. I provide healing. My knowledge of item lore is strong as well, so I can identify your things. I have been instructed to help you, if you so need._";
 text3 = "She nervously awaits a response, a negative one she hopes you sense.";

begintalknode 38;
 state = 19;
 personality = 5;
 nextstate = -1;
 condition = 1;
 question = "Yes, I could use healing. (Pay 50 gold)";
 text1 = "She seems relieved knowing you lack the money. _Sorry outsiders. I know not your customs, but we demand payment in this tribe._ She turns away and tends to her own business.";
 text3 = "_No one needs help right now? Well, if you ever do, please come back._ The Shaman seems pleased not to have to associate with travelers.";
 text5 = "You pay her and she frowns. She chants and white light shines over you and loops around your body in odd swirling patterns. The motes converge onto you and you feel refreshed.";
code =
  clear_strings();
  if (coins_amount() < 50)
   add_string(1);
   else if (run_select_a_pc(1) == 0)
    add_string(3);
    else {
     play_sound(24);
     add_string(5);
     restore_pc(get_selected_pc());
     change_coins(-50);
     }
break;

begintalknode 39;
 state = 19;
 personality = 5;
 nextstate = 20;
 condition = 1;
 question = "What do you mean that you may not be in charge tomorrow?";
 text1 = "She seems very nervous that you asked. She kneels close as if to make a deeply personal confession. _I have heard that some seek my position. They spread rumors about me, that I sympathize with the resistance._";
 text2 = "She grows angry and her voice raises. _It is all a lie, I promise._ Her voice grows very quiet again. _Truth seems to mean little these days. It's all politics and favors._";

begintalknode 40;
 state = 20;
 personality = 5;
 nextstate = -1;
 condition = 1;
 question = "Who are your enemies?";
 text1 = "_I have suspicions. They are members of the army, captains who desire a more militant presence in this temple._";
 text2 = "She looks around nervously. _I have already said too much. There are already those who watch me now._";

begintalknode 41;
 state = 20;
 personality = 5;
 nextstate = -1;
 condition = 1;
 question = "Tell me about the resistance.";
 text1 = "_That is not a topic we should discuss. They oppose our tribe's advance. I do not think anything else needs to be said._";
 text2 = "She seems unwilling to say anything else. You let the subject drop as quickly as it came up.";

begintalknode 42;
 state = 20;
 personality = 5;
 nextstate = -1;
 condition = 1;
 question = "What do you know of politics in Vikida?";
 text1 = "She sighs angrily. _I know not your customs outsiders and how your tribe may work, but here the slightest suspicion can get one into trouble. You should leave quickly, before you have an 'accident'._";
 text2 = "She looks at you closely and whispers. _Just remember, the people here are not all bad. Just afraid and misguided. Thank you for listening to my troubles. Take this and go._ She discretely slips you a potion and nods.";
 text3 = "She turns away from you, still quite nervous. You are still somewhat confused by this offering.";
 code =
  clear_strings();
  add_string(1);
  if (get_sdf(2,4) == 0) {
   add_string(2);
   add_string(3);
   set_flag(2,4,1);
   reward_give(220);
  }
 break;

begintalknode 43;
 state = 18;
 personality = 5;
 nextstate = 21;
 condition = 1;
 question = "Does our presence disturb you?";
 text1 = "She seems very uncomfortable and afraid at your asking. _It is not good to relate with outsiders in this tribe. I have been told to help you leave, but we must be careful not to give 'too much help'._";

begintalknode 44;
 state = 21;
 personality = 5;
 nextstate = -1;
 condition = 1;
 question = "How does one give too much help?";
 text1 = "_You had best not ask,_ she replies simply as if the answer is obvious, which it probably is.";

begintalknode 45;
 state = 19;
 personality = 5;
 nextstate = -1;
 condition = 1;
 question = "Would you identify my items for me?";
 text1 = "_My fee is a mere 10 gold per item._";
 action = ID 10;

begintalknode 46;
 state = -1;
 personality = 6;
 nextstate = 22;
 condition = 1;
 question = "Barron";
 text1 = "This Nephil Archer is carving a bow. He looks worried and pays every great deal of attention to his work. The unfamiliar presence of outsiders is clearly not helping the situation.";
 text2 = "_Welcome to my store,_ he says. A long awkward pause follows.";

begintalknode 47;
 state = 22;
 personality = 6;
 nextstate = -1;
 condition = 1;
 question = "You sell archery supplies? I'd like to buy some.";
 text1 = "You finish shopping.";
 code = 
  begin_shop_mode("Barron's Archery", "Barron nervously inspects the quality of each of his items for any sign of imperfections. This ensures a high quality product for you.", 3, 2, 4);
 break;

begintalknode 48;
 state = 22;
 personality = 6;
 nextstate = 23;
 condition = 1;
 question = "Is something making you nervous?";
 text1 = "He looks suspicious at your asking. _Oh, yes, I mean, no._ He clears his throat. _It's just that I must be careful to produce the highest quality product for our tribe, especially to our soldiers._";
 text2 = "Barron looks around and says quietly, _There are already rumors going around, so I have to be extra careful._";

begintalknode 49;
 state = 23;
 personality = 6;
 nextstate = -1;
 condition = 1;
 question = "What rumors are going around?";
 text1 = "_One of my bows broke in battle, or so I have heard. The archer accused me of shoddy workmanship!_ he says angrily. Barron sighs and continues, _Of course, that's not true! He probably misused it._";
 text2 = "_At any rate, I have to be careful that every product I produce is of superior quality these days. Not that it wasn't before, but I have to be extra careful now._";

begintalknode 50;
 state = 23;
 personality = 6;
 nextstate = -1;
 condition = 1;
 question = "You supply the archery equipment for the soldiers?";
 text1 = "_Not all of it. A good deal, yes,_ he replies with a suspicious glare as if you asked an inappropriate question. He lets the subject drop and continues his carving.";

begintalknode 51;
 state = -1;
 personality = 7;
 nextstate = 24;
 condition = 1;
 question = "Lairre";
 text1 = "A stout Nephilim waits quietly behind the counter. You approach and she speaks, _Good day outsiders. Got food here. Want any?_";
 text2 = "The Nephilim palate does not perfectly match the one you are used to. However, some of the food seems edible to you.";

begintalknode 52;
 state = 24;
 personality = 7;
 nextstate = -1;
 condition = 1;
 question = "Food would sound very good. I have a long journey ahead.";
 text1 = "You finish shopping.";
 code = 
  begin_shop_mode("Vikida Market", "Many of the items Lairre has for sale such as skinned rat are unappealing to you. However, you manage to find things that you find appealing, or at least edible.", 5, 5, -1);
 break;

begintalknode 53;
 state = 24;
 personality = 7;
 nextstate = 25;
 condition = 1;
 question = "What is the latest news here in this tribe?";
 text1 = "She purrs annoyed. _I'm a merchant. I sell food and not associate with outsiders. Are you going to buy something or not?_";

begintalknode 54;
 state = 25;
 personality = 7;
 nextstate = -1;
 condition = 1;
 question = "Sure, let's see what you have.";
 text1 = "You finish shopping.";
 code = 
  begin_shop_mode("Vikida Market", "Many of the items Lairre has for sale such as skinned rat are unappealing to you. However, you manage to find things that you find appealing, or at least edible.", 5, 5, -1);
 break;

begintalknode 55;
 state = 25;
 personality = 7;
 nextstate = -1;
 condition = 1;
 question = "No, I don't really need anything right now.";
 text1 = "_Then I guess we have nothing to talk about._ She turns away, quite rudely.";
 code =
  end();
 break;

begintalknode 56;
 state = -1;
 personality = 8;
 nextstate = 33;
 condition = 1;
 question = "Purdune";
 text1 = "A very muscular Nephilim with singed fur tends to the forge. He paces around confidently and approaches. _Greetings, outsiders, I am Purdune. I have heard of you, and Arivan commands me to assist._";
 text2 = "Judging from the icy and fearful reception you have received thus far, you doubt he is being completely sincere.";

begintalknode 57;
 state = 33;
 personality = 8;
 nextstate = 26;
 condition = 1;
 question = "You run this forge?";
 text1 = "He wears a proud smile upon your mention of this. _Yes, I make the best metalwork in the entire forest. No one disagrees, no one dares challenge my skill._";
text2 = "_I suppose you are more interested in buying things than hearing me brag. I have an assortment of weapons and armor available that will get you through this dangerous forest._";

begintalknode 58;
 state = 26;
 personality = 8;
 nextstate = -1;
 condition = 1;
 question = "I'd like to see your supply of weapons.";
 text1 = "You finish shopping.";
 code = 
  begin_shop_mode("Purdune's Forge", "The highest quality armanents in all of Valzakov are produced here, or so he claims. Of course, this is not much by Empire standards, but the quality is still superior.", 1, 2, 4);
 break;

begintalknode 59;
 state = 26;
 personality = 8;
 nextstate = -1;
 condition = 1;
 question = "I need some armor.";
 text1 = "You finish shopping.";
 code = 
  begin_shop_mode("Purdune's Forge", "The highest quality armanents in all of Valzakov are produced here, or so he claims. Of course, this is not much by Empire standards, but the quality is still superior.", 0, 2, 4);
 break;

begintalknode 60;
 state = 26;
 personality = 8;
 nextstate = 27;
 condition = 1;
 question = "Why would anyone challenge your skill?";
 text1 = "_Our society is motivated by being the best in your art. Anything less is frowned upon. By some fortune, and good heritage, I am so skilled that few practice the art of smithing for fear they will be looked down upon._";
 text2 = "_This is not true of others. For instance, Barron the archer and Endora the shaman are two people who are being challenged. It's a messy affair often leaving the victim without sleep and peace of mind._";

begintalknode 61;
 state = 27;
 personality = 8;
 nextstate = 28;
 condition = (get_sdf(2,5) == 0);
 question = "That doesn't seem right.";
 text1 = "He sighs. _Perhaps. But what is right? If I made the rules, it would not be this way, but that's the way our tribe operates. It seems to work really well, that's all I know._";
 code =
  set_flag(2,5,1);
 break;

begintalknode 62;
 state = 27;
 personality = 8;
 nextstate = 28;
 condition = (get_sdf(2,5) == 0);
 question = "Well, at least it ensures the best survive, correct?";
 text1 = "_So they say. I remain unconvinced, however. But, that is the way we operate. It seems to have worked so far, and quite well._";
code =
  set_flag(2,5,1);
 break;

begintalknode 63;
 state = 28;
 personality = 8;
 nextstate = -1;
 condition = 1;
 question = "Couldn't you get in trouble for voicing such sentiments?";
 text1 = "_Yes. I could. I'm sure there are those who do not like it. However, there is not much they can do about it. They need me, you see. So I can speak as I want, so long as I do not get too loud, if you get my saying._";

begintalknode 64;
 state = 33;
 personality = 8;
 nextstate = 29;
 condition = 1;
 question = "Tell me about your tribe.";
 text1 = "He shrugs. _There is really not much I can tell you that you could not learn just as well by looking around yourself. However, I suggest you heed some friendly advice._";

begintalknode 65;
 state = 29;
 personality = 8;
 nextstate = -1;
 condition = 1;
 question = "What is your advice?";
 text1 = "_When you look around, do not voice your opinions openly. There are those who do not look highly on that. It is not right of them, but they are in power._";
 text2 = "_So, for your sake, be careful what you say and do here. In fact, you should probably leave as soon as possible._";

begintalknode 66;
 state = 29;
 personality = 8;
 nextstate = 28;
 condition = 1;
 question = "Well, can you at least share some news about this forest?";
 text1 = "_Arivan has launched a campaign to dominate this forest, to clear the way for a superior and perfect society.  There have been many killed, and many more will follow._";
 text2 = "He sighs. _Some see this as a holy mission or some sort. I see it as misguided. However, Arivan is in power, and I am powerless to stop her._";

begintalknode 67;
 state = 29;
 personality = 8;
 nextstate = -1;
 condition = 1;
 question = "Could you share any rumors about this place?";
 text1 = "He thinks for a while. Finally, he chuckles. _I've heard that there is an intelligence operative who has a thing for Arivan. They say he's quite twisted and obsessed._";
 text2 = "_No one knows exactly who it is, and I doubt the rumor is true._ He shrugs. _That's the best dirt I can give you._";

begintalknode 68;
 state = -1;
 personality = 9;
 nextstate = 30;
 condition = 1;
 question = "Nablar";
 text1 = "This gruff looking Nephil sits quietly in the corner. He actually seems interested in talking to you. As you approach, he looks you over to size you up.";
 text2 = "At last he nods and introduces himself, _I am Nablar, welcome visitors._ You notice that he called you 'visitors' and not 'outsiders', very different indeed.";

begintalknode 69;
 state = 30;
 personality = 9;
 nextstate = 31;
 condition = (get_sdf(2,6) == 0);
 question = "Why do you want to speak with me?";
 text1 = "_I am curious about you, outsiders._ There is that term again. _I must say, we have never really seen anyone like you. That is of interest to me._";
 text2 = "_I want to know about your society. Will you tell me?_";

begintalknode 70;
 state = 31;
 personality = 9;
 nextstate = 30;
 condition = (get_sdf(2,6) == 0);
 question = "Tell him about the Empire and your lands.";
 text1 = "You tell him as much as you can about the place where you are from, about the Empire that rules totally over the four continents, about your mission here on Valzakov.";
 text2 = "He nods. _That is very interesting. It is indeed nice to know of the world off of this island.  Now is there anything you would like to know about us?_";
 code =
  set_flag(2,6,1);
 break;

begintalknode 71;
 state = 31;
 personality = 9;
 nextstate = 30;
 condition = (get_sdf(2,6) == 0);
 question = "Don't tell the stranger anything.";
 text1 = "You refuse to divulge this information. _That is fine. I do not blame you. You do not know us at all. Perhaps I could enlighten you about the affairs of this forest._";
 code =
  set_flag(2,6,1);
 break;

begintalknode 72;
 state = 30;
 personality = 9;
 nextstate = 32;
 condition = (get_sdf(2,6) > 0);
 question = "Tell me about this forest.";
 text1 = "_We are in Vikida, the strongest tribe of this island. There are many others, but they are in hiding. They fear us, and for good reason. Many of the other tribes have been wiped out by Arivan._";
 text2 = "_However, there are those who fight back.  They are called the resistance and are very mysterious._";

begintalknode 73;
 state = 32;
 personality = 9;
 nextstate = 34;
 condition = (get_sdf(2,6) > 0);
 question = "We encountered a village to the south that was abandoned. Was it purged too?";
 text1 = "_I don't know for sure. It is very likely in the current state of affairs,_ he says in a very business-like manner.";
 text2 = "_I suppose, then, you know of the gruesome truth behind this tribe. Everyone knows it, but very few see the horrors for themselves. Arivan does a good job glamorizing her 'holy quest'._";

begintalknode 74;
 state = 34;
 personality = 9;
 nextstate = -1;
 condition = (get_sdf(2,6) > 0);
 question = "So then what do you think about your tribe?";
 text1 = "_I don't,_ he states matter of factly. _I suggest you do not either. At least, do not voice your opinions. It will likely get you harmed._";

begintalknode 75;
 state = 32;
 personality = 9;
 nextstate = -1;
 condition = (get_sdf(2,6) > 0);
 question = "Tell me about Arivan.";
 text1 = "_She is capable leader. Very strong, charismatic, determined, and overall obsessed with her 'holy quest'. Only the brave dare question her policies and tactics._";
 text2 = "_Arivan makes sure that those who disagree with her are eliminated in a timely fashion. It keeps everything running smoother._";
 text3 = "_Whatever you do, do not cause her trouble openly. It will do no good for anyone._";

begintalknode 76;
 state = 32;
 personality = 9;
 nextstate = -1;
 condition = (get_sdf(2,6) > 0);
 question = "I want to know about the resistance.";
 text1 = "_There is not too much I can tell you. They are group of brave people who fight against her conquest. Some are of this tribe, many have had their tribes purged._";
 text2 = "_They have many spies and agents throughout the forest. The rumor is that their base is to the east, but I doubt that those things are very accurate._";
